aboutsummaryrefslogtreecommitdiff
path: root/examples/docs/src/pages/[...slug].astro
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2023-06-06 11:21:19 -0500
committerGravatar GitHub <noreply@github.com> 2023-06-06 11:21:19 -0500
commit5ed2a2f666707e579e18f2890ab89b7cc6f717c3 (patch)
tree9895d49bc5bd33a63ff0f2e94053e771a54b9dc4 /examples/docs/src/pages/[...slug].astro
parentd5a089810f8218f694ac56591648d36051708560 (diff)
downloadastro-5ed2a2f666707e579e18f2890ab89b7cc6f717c3.tar.gz
astro-5ed2a2f666707e579e18f2890ab89b7cc6f717c3.tar.zst
astro-5ed2a2f666707e579e18f2890ab89b7cc6f717c3.zip
chore: remove docs example (#7306)
Diffstat (limited to 'examples/docs/src/pages/[...slug].astro')
-rw-r--r--examples/docs/src/pages/[...slug].astro22
1 files changed, 0 insertions, 22 deletions
diff --git a/examples/docs/src/pages/[...slug].astro b/examples/docs/src/pages/[...slug].astro
deleted file mode 100644
index a59e4bc2a..000000000
--- a/examples/docs/src/pages/[...slug].astro
+++ /dev/null
@@ -1,22 +0,0 @@
----
-import { CollectionEntry, getCollection } from 'astro:content';
-import MainLayout from '../layouts/MainLayout.astro';
-
-export async function getStaticPaths() {
- const docs = await getCollection('docs');
- return docs.map((entry) => ({
- params: {
- slug: entry.slug,
- },
- props: entry,
- }));
-}
-type Props = CollectionEntry<'docs'>;
-
-const post = Astro.props;
-const { Content, headings } = await post.render();
----
-
-<MainLayout headings={headings} {...post.data}>
- <Content />
-</MainLayout>